All Functions of Week 1

dnorm

{stats}

Density distribution for the normal distribution

mean

{base}

Get mean of a vector

max

{base}

Get maximum of a vector

range

{base}

Return range of values

var

{stats}

Calculate variance

head

{utils}

Show first 5 rows of a data frame

sd

{stats}

Get standard deviation of a vector

c

{base}

Combine values/vectors into a vector

median

{stats}

Get median of a vector

plot

{graphics}

Generic function from base R to produce a plot

min

{base}

Get minimum of a vector

setwd

{base}

Set Working Directory

summary

{base}

Obtain summary statistics or detailed regression output

seq

{base}

Create a sequence

str

{utils}

Get the structure of an R object

read_excel

{readxl}

Read an Excel file

ordered

{dplyr}

Create an ordered factor

filter

{dplyr}

Filter out rows of a data frame according to logical vector

cut

{base}

Convert Numeric to Factor

length

{base}

Returns number of elements in an object

mutate

{dplyr}

Modify/create a column in a data frame

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

names

{base}

Retrieve names of a list/vector

library

{base}

Load an R package

The end!